package com.yupi.yupibackend.service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.yupibackend.model.entity.InterfaceInfo;
import com.yupi.yupibackend.model.entity.User;
import com.yupi.yupibackend.model.req.interfaceInfo.InterfaceInfoAddRequest;
import com.yupi.yupibackend.model.req.interfaceInfo.InterfaceInfoQueryRequest;
import com.yupi.yupibackend.model.req.interfaceInfo.InterfaceInfoUpdateRequest;
import com.yupi.yupibackend.model.vo.InterfaceInfoVo;
import java.util.List;

/**
* @author 86178
* @description 针对表【interface_info(接口信息)】的数据库操作Service
* @createDate 2025-05-03 19:37:01
*/
public interface InterfaceInfoService extends IService<InterfaceInfo> {

    /**
     * 添加接口信息
     * @param interfaceInfoAddRequest
     * @return
     */
   Long addInterfaceInfo(InterfaceInfoAddRequest interfaceInfoAddRequest, User loginUser);


    /**
     * 更新接口信息
     * @param interfaceInfoUpdateRequest
     * @return
     */
   boolean updateInterfaceInfo(InterfaceInfoUpdateRequest interfaceInfoUpdateRequest);

    /**
     * 查询接口信息
     * @param interfaceInfoQueryRequest
     * @return
     */
   InterfaceInfoVo queryInterfaceInfo(InterfaceInfoQueryRequest interfaceInfoQueryRequest);


    /**
     * 获取查询条件
     * @param interfaceInfoQueryRequest
     * @return
     */
   QueryWrapper<InterfaceInfo> getQueryWrapper(InterfaceInfoQueryRequest interfaceInfoQueryRequest);


   /**
     * 获取接口信息vo
     * @param interfaceInfo
     * @return
     */
   InterfaceInfoVo getInterfaceInfoVo(InterfaceInfo interfaceInfo);

    /**
     * 获取接口信息vo列表
     * @param interfaceInfoList
     * @return
     */
    List<InterfaceInfoVo> getInterfaceInfoVoList(List<InterfaceInfo> interfaceInfoList);

    /**
     *  校验接口信息是否合法
     * @param interfaceInfo
     * @param add
     */
   void isValidInterfaceInfo(InterfaceInfo interfaceInfo,Boolean add);


}
